//
//  IMIBaseEvent.h
//  IMIFramework
//
//  Created by Travis on 09-7-28.
//  Copyright 2009 imi.im All rights reserved.
//

/*Holp this is useful for Flash AS Developer*/

#import <Foundation/Foundation.h>

@interface NSEvent:NSNotification{
	
}

+(NSEvent*)eventWithKey:(NSString*)key withObject:(id)data;

@end


@interface NSObject(EventDispatcher)

-(void)dispathcerEvent:(NSEvent*)event;
-(void)addEventListener:(id)target forKey:(NSString*)key withFunction:(SEL)func;
-(void)removeEventListener:(id)target forKey:(NSString*)key;

@end